import random

arr = input("请输入8个数字：")
num = [int(n) for n in arr.split()]
print(num)

list=[x for x in range(1,34)]
res=random.sample(list,8)
list.sort()
print(res)

n= 0
for i in num:
    for j in list:
        if i == j:
            n += 1

if n == 8:
    luck = "恭喜您喜中一等奖！快去享受开挂人生~"
if n == 7:
    luck = "恭喜您喜中二等奖！生活稍稍滋润~"
if n == 6:
    luck = "恭喜您喜中三等奖！可以去吃大餐了~"
if n == 5:
    luck = "恭喜您喜中四等奖！去买礼物吧~"

print("\n", luck)






